const fs = require('fs');

fs.writeFile('example1.txt', 'This is an example1.', (err) => {
    if (err) throw err;
    console.log('example1 saved!'); 
    fs.writeFile('example2.txt', 'This is an example2.', (err) => {
        if (err) throw err;
        console.log('example2 saved!');
    });
});